package com.prj.ufdm.cloud.ms.auth.model;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

/**
 * DESC: 组织结构实体类 <br>
 * @author 胡义振
 * @date 2020年1月16日
 */
public class SysOrgan implements Serializable {

    private static final long serialVersionUID = 1L;

    // 主键UUID
    private String id;

    // 父级机构ID
    private String parentId;

    // 机构编码
    private String organCode;

    // 机构全称
    private String organName;

    // 机构简称
    private String shortName;

    // 部门类别 1公司 2部门
    private String organType;

    // 地址
    private String address;

    // 负责人
    private String master;

    // 联系人
    private String linkMan;

    // 联系电话
    private String linkPhone;

    // 邮编
    private String postCode;

    // 状态 1正常 2为停用
    private BigDecimal status;

    // 备注
    private String remark;

    // 创建人ID
    private String createUserId;

    // 创建人姓名
    private String createUserName;
	    
    // 创建日期  @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    // 修改日期
    private Date updateTime;

    // 显示顺序
    private String displayOrder;

    // 是否独立建账
    private String dependentAccount;

    // 上级部门名称
    private String superName;
    
    // 用户ID
    private String userId;
    
	// 拥有标识
	private boolean ownerFlag;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getOrganCode() {
		return organCode;
	}

	public void setOrganCode(String organCode) {
		this.organCode = organCode;
	}

	public String getOrganName() {
		return organName;
	}

	public void setOrganName(String organName) {
		this.organName = organName;
	}

	public String getShortName() {
		return shortName;
	}

	public void setShortName(String shortName) {
		this.shortName = shortName;
	}

	public String getOrganType() {
		return organType;
	}

	public void setOrganType(String organType) {
		this.organType = organType;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getMaster() {
		return master;
	}

	public void setMaster(String master) {
		this.master = master;
	}

	public String getLinkMan() {
		return linkMan;
	}

	public void setLinkMan(String linkMan) {
		this.linkMan = linkMan;
	}

	public String getLinkPhone() {
		return linkPhone;
	}

	public void setLinkPhone(String linkPhone) {
		this.linkPhone = linkPhone;
	}

	public String getPostCode() {
		return postCode;
	}

	public void setPostCode(String postCode) {
		this.postCode = postCode;
	}

	public BigDecimal getStatus() {
		return status;
	}

	public void setStatus(BigDecimal status) {
		this.status = status;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getCreateUserId() {
		return createUserId;
	}

	public void setCreateUserId(String createUserId) {
		this.createUserId = createUserId;
	}

	public String getCreateUserName() {
		return createUserName;
	}

	public void setCreateUserName(String createUserName) {
		this.createUserName = createUserName;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getDisplayOrder() {
		return displayOrder;
	}

	public void setDisplayOrder(String displayOrder) {
		this.displayOrder = displayOrder;
	}

	public String getDependentAccount() {
		return dependentAccount;
	}

	public void setDependentAccount(String dependentAccount) {
		this.dependentAccount = dependentAccount;
	}

	public String getSuperName() {
		return superName;
	}

	public void setSuperName(String superName) {
		this.superName = superName;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public boolean getOwnerFlag() {
		return ownerFlag;
	}

	public void setOwnerFlag(boolean ownerFlag) {
		this.ownerFlag = ownerFlag;
	}

	@Override
	public String toString() {
		return "SysOrgan [id=" + id + ", parentId=" + parentId + ", organCode=" + organCode + ", organName=" + organName
				+ ", shortName=" + shortName + ", organType=" + organType + ", address=" + address + ", master="
				+ master + ", linkMan=" + linkMan + ", linkPhone=" + linkPhone + ", postCode=" + postCode + ", status="
				+ status + ", remark=" + remark + ", createUserId=" + createUserId + ", createUserName="
				+ createUserName + ", createTime=" + createTime + ", updateTime=" + updateTime + ", displayOrder="
				+ displayOrder + ", dependentAccount=" + dependentAccount + ", superName=" + superName + ", userId="
				+ userId + ", ownerFlag=" + ownerFlag + "]";
	}
    
}
